#pragma once
#include <iostream>

class Task
{
public:
    Task() : _x(0), _y(0) {}
    Task(int x, int y) : _x(x), _y(y) {}

    void Execute() { _result = _x + _y; }

    int Result() const { return _result; }
    int X() const { return _x; }
    int Y() const { return _y; }

private:
    int _x;
    int _y;
    int _result;
};